package cn.edu.scau.cmi.dengshixin.singleton;

public class Chairman {
	
	static private Chairman instance = null;
	private String name;
	
	private Chairman(String name) {
		this.setName(name);
	}
	
	static public Chairman getInstance(String name) {
		if(instance == null) {
			instance = new Chairman(name);
		}
		return instance;
	}
	
	static public Chairman getInstance() {
		return instance;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
